<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace backend\controllers;
use yii\web\Controller;
use Yii;
use yii\web\Request;
use yii\web\Response;
use kartik\grid\EditableColumnAction;
use yii\filters\VerbFilter;
/**
 * Description of BaseController
 *
 * @author zhuo bing
 */
class BaseController extends Controller{
    public function __construct($id, $module, $config = array()) {
        parent::__construct($id, $module, $config);
    }
    /**
     * @inheritdoc
     */
    public function behaviors() {
        return [
            'verbs' => [
                'class' => VerbFilter::className(),
                'actions' => [
                    'delete' => ['post'],
                    'bulk-delete' => ['post'],
                ],
            ],
        ];
    }
    public function dump($data){
        echo '<pre>';
        print_r($data);
        echo '</pre>';
    }  
}
